﻿#include<iostream>
#include<vector>

void printVector(std::vector<int>& v)
{
	for (std::vector<int>::iterator it = v.begin(); it != v.end(); ++it)
	{
		std::cout << *it << ' ';
	}
	std::cout << '\n';
}
void test01()
{
	std::vector<int> v1;
	v1.push_back(10);
	v1.push_back(20);
	v1.push_back(30);
	v1.push_back(40);
	v1.push_back(50);
	v1.push_back(60);
	printVector(v1);

	v1.pop_back();
	printVector(v1);

	
	v1.insert(v1.begin() + 1, 0);
	
	printVector(v1);

	v1.insert(v1.begin() + 1, 0);	
	printVector(v1);
	
	v1.insert(v1.begin(), 2 , 0);
	printVector(v1);

	v1.erase(v1.begin() + 3);
	printVector(v1);

	v1.erase(v1.begin(),v1.begin() + 2);
	printVector(v1);

	v1.clear();
	printVector(v1);

}


int main()
{
	test01();

	return 0;
}
